﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<MySite.Model.AboutInfo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	AboutAdd
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>新增关于我们</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="listable">
        <tr class="listheader">
            <td colspan="2">
                <h2>
                    关于我们内容</h2>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                标题
            </td>
            <td>
                <%: Html.HiddenFor(model => model.PID, new { @class="input"})%>
                <%: Html.TextBoxFor(model => model.Title, new { @class="input"})%>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                内容
            </td>
            <td>
                <%: Html.TextArea("Content", Server.HtmlDecode(""), new { @class = "input", @style = "width:99%", @id = "wysiwyg" })%>
                <script src="../../Scripts/jwysiwyg/jwysiwyg/jquery.wysiwyg.js" type="text/javascript"></script>
                <script type="text/javascript">
                    (function ($) {
                        $('#wysiwyg').wysiwyg({
                            controls: {
                                strikeThrough: { visible: true },
                                underline: { visible: true },

                                separator00: { visible: true },

                                justifyLeft: { visible: true },
                                justifyCenter: { visible: true },
                                justifyRight: { visible: true },
                                justifyFull: { visible: true },

                                separator01: { visible: true },

                                indent: { visible: true },
                                outdent: { visible: true },

                                separator02: { visible: true },

                                subscript: { visible: true },
                                superscript: { visible: true },

                                separator03: { visible: true },

                                undo: { visible: true },
                                redo: { visible: true },

                                separator04: { visible: true },

                                insertOrderedList: { visible: true },
                                insertUnorderedList: { visible: true },
                                insertHorizontalRule: { visible: true },

                                h4mozilla: { visible: true && $.browser.mozilla, className: 'h4', command: 'heading', arguments: ['h4'], tags: ['h4'], tooltip: "Header 4" },
                                h5mozilla: { visible: true && $.browser.mozilla, className: 'h5', command: 'heading', arguments: ['h5'], tags: ['h5'], tooltip: "Header 5" },
                                h6mozilla: { visible: true && $.browser.mozilla, className: 'h6', command: 'heading', arguments: ['h6'], tags: ['h6'], tooltip: "Header 6" },

                                h4: { visible: true && !($.browser.mozilla), className: 'h4', command: 'formatBlock', arguments: ['<H4>'], tags: ['h4'], tooltip: "Header 4" },
                                h5: { visible: true && !($.browser.mozilla), className: 'h5', command: 'formatBlock', arguments: ['<H5>'], tags: ['h5'], tooltip: "Header 5" },
                                h6: { visible: true && !($.browser.mozilla), className: 'h6', command: 'formatBlock', arguments: ['<H6>'], tags: ['h6'], tooltip: "Header 6" },

                                separator07: { visible: true },

                                cut: { visible: true },
                                copy: { visible: true },
                                paste: { visible: true }
                            }
                        });
                    })(jQuery);
                </script>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                分类
            </td>
            <td>
                <%: Html.DropDownListFor(model => model.Type, ViewData["AboutTypeList"] as List<SelectListItem>)%>
            </td>
        </tr>
        <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                发布日期
            </td>
            <td>
                <%= Html.CalendarFor(model => model.PublishDate)%>
            </td>
        </tr>
                <tr>
            <td align="right" class="bj-grey-bg f-blue-1218">
                最后更新日期
            </td>
            <td>
                <%= Html.CalendarFor(model => model.UpdateDate)%>
            </td>
        </tr>
    </table>
    <div class="bj-sp10">
    </div>
    <div class="f-blue-1218 bj-center">
        <input type="submit" class="admin_btn" value="保存" />
    </div>
    <% } %>

    <div>
        <%= Html.ActionLink("返回", "AboutList")%>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
